﻿using RBAC.Domain;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Traceability.Domain
{
    /// <summary>
    /// 溯源表
    /// </summary>
    [Table("Traceabilitys")]
    public class Traceabilitys
    {
        /// <summary>
        /// 溯源表ID
        /// </summary>
        [Key]
        public int TraceabilityId { get; set; }
        /// <summary>
        /// 商品信息id
        /// </summary>
        public int GoodsdId { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        public string? Batch {  get; set; }
        /// <summary>
        /// 生产许可证
        /// </summary>
        public string? License { get; set; }
        /// <summary>
        /// 保质期
        /// </summary>
        public int Sellby {  get; set; }
        /// <summary>
        /// 生产企业
        /// </summary>
        public string? ManufacturingEnterprise {  get; set; }
        /// <summary>
        /// 封面图片
        /// </summary>
        public string? Imgs { get; set; }
       
        /// <summary>
        /// 删除标志
        /// </summary>
        public bool TraceabilityDel {  get; set; }=false;



        /// <summary>
        /// 添加人
        /// </summary>
        public string? addName { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? addDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? updateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? updateDate { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        public string? delName { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? delDate { get; set; }
    }
}
